package java_persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import domain.Nurse;


public interface NurseMapper {

	// CREATES
	
	/**Promotes a user to being a nurse in the database
	 * @param nu the username
	 */
	public void create_nurse(@Param("nurse_username") String nu);
	
	// RETRIEVES
	
	/**Retrieves Nurses from the database, including his/her associated user information.
	 * @return a list of Nurses.
	 */
	public List<Nurse> get_nurses();
	/**Retrieves a nurse by uername.  
	 * @param nu the username
	 * @return the Nurse
	 */
	public Nurse get_nurse_by_username(@Param("nurse_username") String nu);
	
	// UPDATES
	
	// DELETES
	
	/**Demotes a user from being a nurse in the database.  It doesn't actually delete the user.
	 * @param nu the username
	 */
	public void delete_nurse(@Param("username") String nu);
	
}
